package com.learn.project2.controller.admin;

import com.learn.project2.model.bo.admin.user.UserListBO;
import com.learn.project2.model.vo.admin.collect.CollectListVO;
import com.learn.project2.service.admin.collect.CollectService;
import com.learn.project2.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * @description: 会员收藏
 * @author wxy
 * @date 2022-01-08 10:15
 * @version 1.0
 */
@RequestMapping("admin/collect")
@RestController
public class CollectController {

    @Autowired
    CollectService collectService;
    @RequestMapping("list")
    public Result list(Integer userId, Integer valueId, UserListBO userListBO){
        CollectListVO collectListVO = collectService.selectCollect(userId,valueId,userListBO);
        return Result.ok(collectListVO);
    }
}
